home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0993sept.archive
/
000014_crash!cbos.uc.edu!USR1400A_Sat, 4 Sep 93 06:23:05 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
1KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Sat, 4 Sep 93 06:23:05 PST
Received: from cbos.uc.edu by crash.cts.com with smtp
(Smail3.1.28.1 #18) id m0oYNWJ-0000QbC; Thu, 2 Sep 93 15:52 PDT
Received: by cbos.uc.edu (3.5/1.0)
id AA6457; 2 Sep 93 18:55:32 -0400
Return-Path: <USR1400A@cbos.uc.edu>
Date: 2 Sep 93 18:54:00 -0400
Message-Id: <199309021855.AA6457@cbos.uc.edu>
From: USR1400A@cbos.uc.edu
To: amigae@bkhouse.cts.com
Subject: pointer to PROC??
The way (or at least one way) to pass a pointer to an E PROC as a parameter
is to use the curley brakets, i.e. {myproc}. Be really sure that you understand
the procedure structure and register usage before you pass an E PROC's address
to an amiga library routine, especially if the referenced proc is executed
directly or indirectly and also especially if the proc (or any nested procs)
it calls references E global variables, i.e. those DEF'ed prior to the first
procedure. It may also of interest to you to know that the curley bracket
method can be used to pass the address of any piece of code, not just a
procedure. To do this just hang a label on the piece of code you wish to
reference and then pass its address to a library procedure by use of the
curley brakets, e.g. libproc({mylabel})
in this case the program would contain a mylabel: statement somewhere (actually
anywhere) in the program.